package cn.tedu.hongbei.pms.pojo.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class CategoryUpdateInfoParam implements Serializable {
    @NotNull(message = "必须提交类别名称！")
    @ApiModelProperty(value = "类别名称", required = true, example = "开心的相册")
    private String name;
    @NotNull(message = "必须提交类别名称！")
    @ApiModelProperty(value = "类别名称", required = true, example = "开心的相册")
    private String keywords;
    @NotNull(message = "必须提交排序序号")
    @Range(max = 99, message = "排序序号值必须0~99之间")
    @ApiModelProperty(value = "类别名称,必须在1-255之间",required = true,example = "98")
    private Integer sort;
    @NotNull(message = "必须提交类别名称！")
    @ApiModelProperty(value = "类别图片的地址", required = true, example = "开心的类别图片的地址")
    private String icon;
}
